package com.wv.common.result;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Builder
@Data
public class  PageResponseResult extends Result implements Serializable {
    private Integer currentPage;
    private Integer size;
    private Long total;

    public PageResponseResult(Integer currentPage, Integer size, Long total) {
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
    }

    public PageResponseResult() {
        super(HttpCodeEnum.SUCCESS.code, HttpCodeEnum.SUCCESS.msg);
    }

}
